home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Filezilla Server / FileZilla_Server-0_9_41.exe / source / interface / misc / SAPrefsStatic.h < prev    next >
C/C++ Source or Header  |  2011-11-06  |  3KB  |  94 lines

  1. /*********************************************************************
  2.  
  3.    Copyright (C) 2000 Smaller Animals Software, Inc.
  4.  
  5.    This software is provided 'as-is', without any express or implied
  6.    warranty.  In no event will the authors be held liable for any damages
  7.    arising from the use of this software.
  8.  
  9.    Permission is granted to anyone to use this software for any purpose,
  10.    including commercial applications, and to alter it and redistribute it
  11.    freely, subject to the following restrictions:
  12.  
  13.    1. The origin of this software must not be misrepresented; you must not
  14.      claim that you wrote the original software. If you use this software
  15.      in a product, an acknowledgment in the product documentation would be
  16.      appreciated but is not required.
  17.  
  18.    2. Altered source versions must be plainly marked as such, and must not be
  19.      misrepresented as being the original software.
  20.  
  21.    3. This notice may not be removed or altered from any source distribution.
  22.  
  23.    http://www.smalleranimals.com
  24.    smallest@smalleranimals.com
  25.  
  26. **********************************************************************/
  27.  
  28. #if !defined(AFX_PREFSSTATIC_H__1B15B006_9152_11D3_A10C_00500402F30B__INCLUDED_)
  29. #define AFX_PREFSSTATIC_H__1B15B006_9152_11D3_A10C_00500402F30B__INCLUDED_
  30.  
  31. #if _MSC_VER >= 1000
  32. #pragma once
  33. #endif // _MSC_VER >= 1000
  34. // PrefsStatic.h : header file
  35. //
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CPrefsStatic window
  39.  
  40. class CSAPrefsStatic : public CStatic
  41. {
  42. // Construction
  43. public:
  44.     CSAPrefsStatic();
  45.  
  46. // Attributes
  47. public:
  48.  
  49. // Operations
  50. public:
  51.    CString m_csFontName;
  52.  
  53.     void        SetConstantText(LPCTSTR pText)    {m_csConstantText = pText;}
  54.  
  55.    int m_fontSize, m_fontWeight;
  56.    BOOL m_grayText;
  57.    COLORREF m_textClr;
  58. // Overrides
  59.     // ClassWizard generated virtual function overrides
  60.     //{{AFX_VIRTUAL(CPrefsStatic)
  61.     //}}AFX_VIRTUAL
  62.  
  63. // Implementation
  64. public:
  65.     virtual ~CSAPrefsStatic();
  66.  
  67. protected:
  68.    CFont m_captionFont, m_nameFont;
  69.  
  70.    CBitmap m_bm;
  71.  
  72.     CString m_csConstantText;
  73.     
  74.  
  75.    void MakeCaptionBitmap();
  76.  
  77.     // Generated message map functions
  78. protected:
  79.     //{{AFX_MSG(CPrefsStatic)
  80.     afx_msg void OnPaint();
  81.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  82.     afx_msg LRESULT OnSetText (WPARAM wParam, LPARAM lParam);
  83.     //}}AFX_MSG
  84.  
  85.     DECLARE_MESSAGE_MAP()
  86. };
  87.  
  88. /////////////////////////////////////////////////////////////////////////////
  89.  
  90. //{{AFX_INSERT_LOCATION}}
  91. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  92.  
  93. #endif // !defined(AFX_PREFSSTATIC_H__1B15B006_9152_11D3_A10C_00500402F30B__INCLUDED_)
  94.